<template>
    <section>
      <h2>使用props接收路由参数</h2>
      <p>name参数：{{name}}</p>
      <p>age参数：{{age}}</p>
      <p>major参数：{{major}}</p>
      <p>tel参数：{{tel}}</p>
    </section>
  </template>
  
  <script>
  export default {
    props: {
        name: {
            type: String
        },
        age: {
            type: String
        },
        major: {
            type: String
        },
        tel: {
            type: String
        }
    }
  };
  </script>
  
  <style scoped>
  </style>